package com.vogue.supplymall.account.domain.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 商城的分类商品/供货商共用
 * @author 崔岳
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "base_category")
public class BaseCategory extends BaseEntity implements Serializable{

	/**
     *
     * 名称
     *
     * @mbg.generated Wed Nov 29 17:59:47 CST 2017
     */
    private String name;

    /**
     *
     * 上级id
     * 
     * @mbg.generated Wed Nov 29 17:59:47 CST 2017
     */
    private Long pid;

    /**
     *
     * 排序号
     *
     * @mbg.generated Wed Nov 29 17:59:47 CST 2017
     */
    private Integer seqnum;
    

    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
   
    public Long getPid() {
        return pid;
    }
    
    public void setPid(Long pid) {
        this.pid = pid;
    }
    
    public Integer getSeqnum() {
        return seqnum;
    }
    
    public void setSeqnum(Integer seqnum) {
        this.seqnum = seqnum;
    }
}